#include <stdio.h>
#include <iostream>
#include <conio.h>

#include "cLogger.h"

using namespace std;

DWORD WINAPI threatFunc(LPVOID lpParam);

int main() {
	cLogger& log = cLogger::Instance();

	HANDLE hThread[3];
	
	for(int i=0; i<3; i++) {
		hThread[i] = CreateThread(NULL, 0, threatFunc, NULL, 0, NULL);
		if(hThread[i] == NULL) {
			// ERROR
		}
	}

	WaitForMultipleObjects(3, hThread, TRUE, INFINITE);

	printf("Press any key...");
	
	//getch();
	
	return 0;
}

DWORD WINAPI threatFunc(LPVOID lpParam) {
	cLogger& p = cLogger::Instance();
	for(int i=0; i<20; i++)
		p.PutDebug("_Welcome!");
	return 0;
}